#! /usr/bin/env python
# -*- coding: utf-8
import rospy
from std_msgs.msg import String
'''
asdsad
'''
if __name__ == "__main__":


    rospy.init_node("sanDan")

    pub = rospy.Publisher("che", String, queue_size=10)

    msg = String()

    rate = rospy.Rate(1)
    count = 0
    while not rospy.is_shutdown():
        count+=1
        msg.data = "hello" + str(count)
        
        pub.publish(msg)
        rospy.loginfo("发布的数据：%s", msg.data)
        rate.sleep()
